<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>

<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
<script>
	function validar(){
		var u = document.f1.txtUsuario.value;
		var p = document.f1.txtPassword.value;
		if (u =="" || p==""){
			alert("Ingrese el Usuario y password");
			return false;
		}
		else
			return true;
	}
</script>

</head>


<body>

Ingreso al sistema
	<form onsubmit="return validar()" method="post" action="" name="f1">
		<table>
			<tr>
				<td>Usuario</td>
				<td style="width: 87px;"><input name="txtUsuario"/></td>
		</tr>
		<tr>
			<td>Clave</td>
			<td style="height: 51px; "><input type="password" style="width: 153px; "><input
					type="submit" value=Ingresar name="txtPassword"></td>
		</tr>
	<tr></tr></table>
	</form>
</body>
</html>